#pragma once
#include <d3dx9.h>
#define SELECTION_QUAD_SIZE 0.6
#define PATH_FIND_START_SELECTION_COLOR 0x0000AA00
#define PATH_FIND_DEST_SELECTION_COLOR 0x00000000
#define SELECTION_COLOR 0x000000FF
#define NOT_WALKABLE_SELECTION_COLOR 0xff00000
class cMain;
class cSelect
{
cMain & Main;
	float SelectedPosX;
	float SelectedPosY;
	int SelectedQuadX;
	int SelectedQuadY;
	bool FirstSelected;
	bool SecondSelectd;
	int StartPosX;
	int StartPosY;
	int EndPosX;
	int EndPosY;

	float fStartPosX;
	float fStartPosY;
	float fEndPosX;
	float fEndPosY;
	bool LButtonDown;
public:
	float GetSelectedPosX() { return SelectedPosX; }
	float GetSelectedPosY() { return SelectedPosY; }
	int GetStartPosX() { return StartPosX; }
	int GetStartPosY() { return StartPosY; }
	int GetEndPosX() { return EndPosX; }
	int GetEndPosY() { return EndPosY; }
	float GetfStartPosX() { return fStartPosX; }
	float GetfStartPosY() { return fStartPosY; }
	float GetfEndPosX() { return fEndPosX; }
	float GetfEndPosY() { return fEndPosY; }
	bool GetSecondSelected() { return SecondSelectd; }
	int GetSelectedQuadX(){ return SelectedQuadX; }
	int GetSelectedQuadY(){ return SelectedQuadY; }
	int GetSelectedQuadIndex();

	void NotWalkableButtonPressed();
	void FindPathButtonPressed();
	void HPAPathFindButtonPressed();
	void SrcAndDestButtonPressed();
	void Restart();
	void MouseClick();
	void MouseUP();
	void MouseMove();
	void VisTileToTileButtonPressed();
	void VisPosToTileButtonPressed();
	void VisPosToPosButtonPressed();
	void UnitButtonPressed();
	VOID Render();
	void FinalPathButtonPressed();
	void SmoothPathButtonPressed();
	
	cSelect::cSelect(cMain & Main);
	cSelect::~cSelect();

};